<%-- PROJECT WIDE GLOBAL CONSTANTS --%>
<%--render javascript to set paths begin--%>
<g:javascript>
// Without HOST, only 'vietSNG'. If on Server side pls use Grails's tag createLink instead !!!
var CONTEXT_PATH = "${request.contextPath}";

// With HOST, 'http://localhost:8080/vietSNG' or 'http://vietsn.de:8080/vietSNG' (Environment dependent)
// If on Server side pls use Grails's tag createLink instead !!!
var ABSOLUTE_CONTEXT_PATH = '${request.getRequestURL().toString().split("/grails")[0]}';
ABSOLUTE_CONTEXT_PATH = ABSOLUTE_CONTEXT_PATH.substring(0,ABSOLUTE_CONTEXT_PATH.length - 8);


</g:javascript>